Release 10.1A: OpenEdge Development:
Java Open Clients
Extended methods
OpenEdge provides the following methods to extend the Java SDO
DataObjectand implement theProDataObjectclass.getFieldCount( )
Returns the number of column properties that this
ProDataObjectrepresents:
A
ProDataObjectholds its data as a property list—one property per column. However, aProDataObjectmight contain extra properties (reference properties) if it is involved in a data-relation (ProDataRelatonMetaData). This method returns the number of properties that map to a column. You can access these properties in sequence using the variousProDataObjectset and get methods with the 0-basedpropertyIndexvalue up to the limit specified by this method.getGregorianCalendar( )
Returns the value of a
Note: The Java SDO API does not currently supportGregorianCalendarcolumn property, as specified by the overloaded methods:GregorianCalendarfor aDataObject. However, OpenEdge supports this data type for use with theProDataObjectclass.
propertyIndexSpecifies a 0-based index into the list of column properties contained by the
ProDataObject. You can identify the index of a particular column property that corresponds to a mapped temp-table field usingProDataObjectMetaDatamethods. For more information, see the "ProDataObjectMetaData class" section.propertyNameSpecifies the name of a column property in the
Propertylist contained by theProDataObject. This name is typically identical to the name of a Progress 4GL temp-table field to which this column property is mapped.getTableName( )
Returns the Progress 4GL name of the temp-table that this
ProDataObjectmaps to:
getChildRows( )
Returns a list of the specified child
ProDataObjectinstances of the current parentProDataObject:
relationNameSpecifies the name of a data-relation (
ProDataRelationMetaData) in which the currentProDataObjectparticipates as a parent row. For more information, see the "ProDataRelationMetaData class" section.getParentRow( )
Returns the parent
ProDataObjectof the current childProDataObject:
relationNameSpecifies the name of a data-relation (
ProDataRelationMetaData) in which the currentProDataObjectparticipates as a child row. For more information, see the "ProDataRelationMetaData class" sectiongetRowErrorString( )
Returns the error string for this
ProDataObjectinstance (row):
This error string is set on return from the AppServer when the update to a data source using this row (mapped to a record in a temp-table) is not successful.
getTableErrorString( )
Returns the error string for the temp-table (
ProDataObjectcollection) that contains the data from thisProDataObject:
This error string is set on return from the AppServer when the update to a data source using this temp-table is not successful.
hasRowError( )
Returns
trueif the AppServer returned an error message for the temp-table record (row) mapped to thisProDataObject:
It is set on return from the AppServer when an update to a data source using this row is not successful.
hasTableError( )
Returns
trueif the AppServer returned an error message for the temp-table that contains the data from thisProDataObjectrow:
It is set on return from the AppServer when an update to a data source using any row in this temp-table is not successful.
setGregorianCalendar( )
Sets the value of a
GregorianCalendarcolumn property, as specified by the overloaded methods:
propertyIndexSpecifies a 0-based index into the list of column properties contained by the
ProDataObject. You can identify the index of a particular column property that corresponds to a mapped temp-table field usingProDataObjectMetaDatamethods. For more information, see the "ProDataObjectMetaData class" section.propertyNameSpecifies the name of a column property in the
Propertylist contained by theProDataObject. This name is typically identical to the name of a Progress 4GL temp-table field to which this column property is mapped.valueSpecifies the value to set for this property.
Note: The Java SDO API does not currently supportGregorianCalendarfor aDataObject. However, OpenEdge supports this data type for use with theProDataObjectclass.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |